package it.avantsoft.ls.gl.message;

import java.io.DataOutputStream;
import java.io.IOException;

public class PongMessage extends GroupLeaderMessage {
    public PongMessage(DataOutputStream out) {
        super(out);
    }

    public boolean send() {
        boolean sent = false;
        try {
            writeInt(PONG);
            flush();
            sent = true;
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
        return sent;
    }

    public String toString() {
        return "PongMessage{}";
    }
}
